﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C49 RID: 3145
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MusicRhythmUnlockSongNotify : IMessage<MusicRhythmUnlockSongNotify>, IMessage, IEquatable<MusicRhythmUnlockSongNotify>, IDeepCloneable<MusicRhythmUnlockSongNotify>, IBufferMessage
	{
		// Token: 0x170027A4 RID: 10148
		// (get) Token: 0x06008CA1 RID: 36001 RVA: 0x00175FB8 File Offset: 0x001741B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MusicRhythmUnlockSongNotify> Parser
		{
			get
			{
				return MusicRhythmUnlockSongNotify._parser;
			}
		}

		// Token: 0x170027A5 RID: 10149
		// (get) Token: 0x06008CA2 RID: 36002 RVA: 0x00175FBF File Offset: 0x001741BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MusicRhythmUnlockSongNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170027A6 RID: 10150
		// (get) Token: 0x06008CA3 RID: 36003 RVA: 0x00175FD1 File Offset: 0x001741D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MusicRhythmUnlockSongNotify.Descriptor;
			}
		}

		// Token: 0x06008CA4 RID: 36004 RVA: 0x00175FD8 File Offset: 0x001741D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmUnlockSongNotify()
		{
		}

		// Token: 0x06008CA5 RID: 36005 RVA: 0x00175FEB File Offset: 0x001741EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmUnlockSongNotify(MusicRhythmUnlockSongNotify other) : this()
		{
			this.musicUnlockList_ = other.musicUnlockList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008CA6 RID: 36006 RVA: 0x00176015 File Offset: 0x00174215
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmUnlockSongNotify Clone()
		{
			return new MusicRhythmUnlockSongNotify(this);
		}

		// Token: 0x170027A7 RID: 10151
		// (get) Token: 0x06008CA7 RID: 36007 RVA: 0x0017601D File Offset: 0x0017421D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MusicUnlockList
		{
			get
			{
				return this.musicUnlockList_;
			}
		}

		// Token: 0x06008CA8 RID: 36008 RVA: 0x00176025 File Offset: 0x00174225
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MusicRhythmUnlockSongNotify);
		}

		// Token: 0x06008CA9 RID: 36009 RVA: 0x00176033 File Offset: 0x00174233
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MusicRhythmUnlockSongNotify other)
		{
			return other != null && (other == this || (this.musicUnlockList_.Equals(other.musicUnlockList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008CAA RID: 36010 RVA: 0x00176068 File Offset: 0x00174268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.musicUnlockList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008CAB RID: 36011 RVA: 0x0017609C File Offset: 0x0017429C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008CAC RID: 36012 RVA: 0x001760A4 File Offset: 0x001742A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008CAD RID: 36013 RVA: 0x001760AD File Offset: 0x001742AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.musicUnlockList_.WriteTo(ref output, MusicRhythmUnlockSongNotify._repeated_musicUnlockList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008CAE RID: 36014 RVA: 0x001760D4 File Offset: 0x001742D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.musicUnlockList_.CalculateSize(MusicRhythmUnlockSongNotify._repeated_musicUnlockList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008CAF RID: 36015 RVA: 0x0017610D File Offset: 0x0017430D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MusicRhythmUnlockSongNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.musicUnlockList_.Add(other.musicUnlockList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008CB0 RID: 36016 RVA: 0x0017613B File Offset: 0x0017433B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008CB1 RID: 36017 RVA: 0x00176144 File Offset: 0x00174344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U && num != 90U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.musicUnlockList_.AddEntriesFrom(ref input, MusicRhythmUnlockSongNotify._repeated_musicUnlockList_codec);
				}
			}
		}

		// Token: 0x040035BA RID: 13754
		private static readonly MessageParser<MusicRhythmUnlockSongNotify> _parser = new MessageParser<MusicRhythmUnlockSongNotify>(() => new MusicRhythmUnlockSongNotify());

		// Token: 0x040035BB RID: 13755
		private UnknownFieldSet _unknownFields;

		// Token: 0x040035BC RID: 13756
		public const int MusicUnlockListFieldNumber = 11;

		// Token: 0x040035BD RID: 13757
		private static readonly FieldCodec<uint> _repeated_musicUnlockList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x040035BE RID: 13758
		private readonly RepeatedField<uint> musicUnlockList_ = new RepeatedField<uint>();
	}
}
